package com.zmkj.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


//@Data
//@AllArgsConstructor
//@NoArgsConstructor
@TableName("sys_user")
public class SysUser {

    Integer id;

    String username;

    String password;

    public void setId(Integer id) {
        this.id = id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public void setSysRole(SysRole sysRole) {
        this.sysRole = sysRole;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public Integer getId() {
        return id;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public String getImg() {
        return img;
    }

    public String getEmail() {
        return email;
    }

    public String getPhone() {
        return phone;
    }

    public String getSchool() {
        return school;
    }

    public SysRole getSysRole() {
        return sysRole;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public String getRolename() {
        return rolename;
    }

    String img;
    String email;
    String phone;
    String school;
    @TableField(select = false)
    SysRole sysRole;
    @TableField("role_id")
    Integer roleId;
    @TableField(select = false)
    String rolename;

}
